package cn.kgc.javase.day03;

/**
 * @author 课工场
 * @date 2024/6/27
 * @description   比较运算符     结果  boolean
 *
 *   ==  等
 *   >
 *   <
 *   >=
 *   <=
 *   !=
 */
public class Demo04 {

    public static void main(String[] args) {

        int number1 = 1;
        int number2 = 2;

        boolean  b = (number1==number2) ;
        // System.out.println("b = " + b);


        // false
        b = number1 > number2;
        System.out.println("b = " + b);

        // true
        b = number1 <number2;
        System.out.println("b = " + b);

        // false
        b = number1 >=number2;
        System.out.println("b = " + b);

        // true
        b = number1 <=number2;
        System.out.println("b = " + b);

        // true
        b =(number1 !=number2) ;
        System.out.println("b = " + b);




    }
}
